<template>
	<view>
		<view><web-view :src="websrc"></web-view></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
				websrc: '',
				appUrl: '/hybrid/html/readPdf/index/index.html', //app内的web地址
				title: '预览', //pdf文件名称
				webUrl: 'https://play.junbaochen.cn/ZcyQBcJzg/index/index.html', //远程web地址

			}
		},
		onLoad(query) {
			console.log(query);
			this.src = query.file;
			// this.websrc = query.file;
			this.websrc = this.webUrl + '?url=' + encodeURIComponent(this.src) + '&tname=' + encodeURIComponent(this
				.title)
		},
		methods: {

		}
	}
</script>

<style>

</style>